< previous page page_412 next page >

Page 412
Always provide keyboard shortcuts; never require the use of a mouse. (This is good advice for all forms in your program, not just data entry forms.)
Keep the layout consistent with the order of the users' tasks. In other words, don't make them jump from one section to another unnecessarily to enter information.
Do not require the users to perform unnecessary work. In other words, if fields 2 through 10 require a value only if field 1 has a value, you don't need to make the users always tab through every field. On the other hand, don't make the behavior of your forms too field dependent; if a form works differently for every possible combination of required fields, you may actually slow down the users.
Use noticeable but unobtrusive visual cues to provide feedback to the users. The way the VB code editor capitalizes correctly spelled variables and constants is a good example.
If possible, perform adds and edits on the same form so that the users do not have to learn multiple methods of accessing the same data.
An example of a data entry form is shown in Figure 18.4. Notice that when a data validation error occurs, the offending field is highlighted, and an explanation is provided in the status bar.
0412-01.jpg
Figure 18.4
In this sample data entry form,
ease of use is of prime importance.
Use the Right Control for the Job
Visual Basic provides several custom controls that can be placed on a form. However, keep in mind that some controls work better in certain situations than others. The purpose of the form should help guide you in choosing the appropriate controls. For example, both the ListBox and ComboBox controls can be used to select from a list of choices. However, the combo box allows you to save form real estate by hiding the list of choices, as illustrated in Figure 18.5.
0412-02.jpg
Figure 18.5
The amount of space available on a form
may influence your choice of custom controls.

 
< previous page page_412 next page >